package orange.com.openstack.tools;

/**
 * @author mfrh5781
 * 
 */
public class StringConverter {

	/**
	 * this method take an array of String as parameter and return a
	 * representing String with quotes between each String e.g:Array2String(new
	 * String[]{"test1","test2","test3"}) return "test","test2","test3"
	 * 
	 * @param array
	 * @return
	 */
	public static String Array2String(String[] array) {
		String stringArray = "";
		for (String s : array)
			stringArray += "\"" + s + "\",";
		return "["
				+ ((stringArray.length() > 0) ? stringArray.substring(0,
						stringArray.length() - 1) : "") + "]";
	}


}
